# $Id: Makefile.am,v 1.7 2005/08/21 22:20:25 joostvb Exp $

PERL                    = perl

pngs		= back.png backon.png bg1.png blank.png blankon.png \
 forward.png forwardon.png help.png helpon.png home.png homeon.png \
 inactive.png index.png indexon.png next.png nexton.png prev.png prevon.png \
 toc.png tocon.png up.png upon.png

htmls		= \
 autobook.html     autobook_1.html   autobook_10.html  autobook_100.html \
 autobook_101.html autobook_102.html autobook_103.html autobook_104.html \
 autobook_105.html autobook_106.html autobook_107.html autobook_108.html \
 autobook_109.html autobook_11.html  autobook_110.html autobook_111.html \
 autobook_112.html autobook_113.html autobook_114.html autobook_115.html \
 autobook_116.html autobook_117.html autobook_118.html autobook_119.html \
 autobook_12.html  autobook_120.html autobook_121.html autobook_122.html \
 autobook_123.html autobook_124.html autobook_125.html autobook_126.html \
 autobook_127.html autobook_128.html autobook_129.html autobook_13.html  \
 autobook_130.html autobook_131.html autobook_132.html autobook_133.html \
 autobook_134.html autobook_135.html autobook_136.html autobook_137.html \
 autobook_138.html autobook_139.html autobook_14.html  autobook_140.html \
 autobook_141.html autobook_142.html autobook_143.html autobook_144.html \
 autobook_145.html autobook_146.html autobook_147.html autobook_148.html \
 autobook_149.html autobook_15.html  autobook_150.html autobook_151.html \
 autobook_152.html autobook_153.html autobook_154.html autobook_155.html \
 autobook_156.html autobook_157.html autobook_158.html autobook_159.html \
 autobook_16.html  autobook_17.html  autobook_18.html  autobook_19.html  \
 autobook_20.html  autobook_2.html   autobook_21.html  autobook_22.html  \
 autobook_23.html  autobook_24.html  autobook_25.html  autobook_26.html  \
 autobook_27.html  autobook_28.html  autobook_29.html  autobook_3.html   \
 autobook_30.html  autobook_31.html  autobook_32.html  autobook_33.html  \
 autobook_34.html  autobook_35.html  autobook_36.html  autobook_37.html  \
 autobook_38.html  autobook_39.html  autobook_4.html   autobook_40.html  \
 autobook_41.html  autobook_42.html  autobook_43.html  autobook_44.html  \
 autobook_45.html  autobook_46.html  autobook_47.html  autobook_48.html  \
 autobook_49.html  autobook_5.html   autobook_50.html  autobook_51.html  \
 autobook_52.html  autobook_53.html  autobook_54.html  autobook_55.html  \
 autobook_56.html  autobook_57.html  autobook_58.html  autobook_59.html  \
 autobook_6.html   autobook_60.html  autobook_61.html  autobook_62.html  \
 autobook_63.html  autobook_64.html  autobook_65.html  autobook_66.html  \
 autobook_67.html  autobook_68.html  autobook_69.html  autobook_7.html   \
 autobook_70.html  autobook_71.html  autobook_72.html  autobook_73.html  \
 autobook_74.html  autobook_75.html  autobook_76.html  autobook_77.html  \
 autobook_78.html  autobook_79.html  autobook_8.html   autobook_80.html  \
 autobook_81.html  autobook_82.html  autobook_83.html  autobook_84.html  \
 autobook_85.html  autobook_86.html  autobook_87.html  autobook_88.html  \
 autobook_89.html  autobook_9.html   autobook_90.html  autobook_91.html  \
 autobook_92.html  autobook_93.html  autobook_94.html  autobook_95.html  \
 autobook_96.html  autobook_97.html  autobook_98.html  autobook_99.html  \
 autobook_abt.html autobook_fot.html autobook_ovr.html autobook_toc.html

EXTRA_DIST		= $(pngs)

CLEANFILES		= $(htmls)

docdir                  = $(datadir)/doc/$(PACKAGE)/html

autobook.html: $(top_srcdir)/autobook.texi
	texi2html -I $(srcdir) -output . -split section -nomenu $<

## 	$(PERL) $(top_srcdir)/texi2html -I $(srcdir) -split section --subdir html -nomenu $<

html_doc = autobook.html

# AutoMake extensions used to handle HTML documentation in chunks
all-local: $(html_doc)

doc_DATA = $(pngs) $(htmls)


## these 3 chunks install Makefile* in $(DESTDIR)$(docdir)/html/ .  That's
## ugly, use doc_DATA.  (We need the explicit list of html files for other
## reasons anyway.)

## install-data-local : $(html_doc)
## 	$(mkinstalldirs) $(DESTDIR)$(docdir)/html; \
##             cp $(top_builddir)/html/* $(DESTDIR)$(docdir)/html

## uninstall-local:
## 	for f in $(top_srcdir)/html/*; do \
##                 file=`basename $$f`; \
##                 rm -f $(DESTDIR)$(docdir)/html/$$file; \
##             done; \
##             rmdir $(DESTDIR)$(docdir)/html

## maintainer-clean-local :
## 	rm -f $(top_srcdir)/html/*.html

